import biosbob.targets.ti.MSP430;

metaonly module BuildC inherits amaret.freestyle.core.distro.IBaseC {

    readonly config ti.targets.ITarget.Module TI_Target;
}

implementation {

    TOOLSDIR := "C:/Program Files/Texas Instruments/ccsv4";
    
    final Target := MSP430;
    
    Target.platform := 'amaret.freestyle.distro.platform';
    Target.rootDir := TOOLSDIR + "/tools/compiler/MSP430";
    
    Target.profiles['whole_program'].filters := [{moduleName: 'biosbob.filters.blas.FilterTI'}];
    Target.profiles['whole_program_debug'].filters := [{moduleName: 'biosbob.filters.blas.FilterTI'}];
    
    final TI_Target := MSP430;
    
    TI_Target.ccConfigOpts.prefix += " -mf0 --single_inline --inline_recursion_limit=20";
    TI_Target.ccConfigOpts.suffix += " --symdebug:none";
    
    Build.platformTable['amaret.freestyle.distro.platform'] := { dssPath: TOOLSDIR + "/DebugServer" };

}
